<?php
if(isset($javascript)):
// load script in <head> section 
$javascript->link("tiny_mce/tiny_mce.js",false);
?>
<script language="javascript" type="text/javascript">
<?php $options = '
            mode : "textareas",     
            theme : "advanced",
            theme_advanced_buttons1 : "bold,italic,underline,|,undo,redo,|,cut,copy,paste,|,bullist,numlist,outdent,indent,|,sub,sup,|,code",
            theme_advanced_buttons2 : "",
            theme_advanced_buttons3 : "",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|color|style],span[class|align|style]"';
?>
tinyMCE.init({<?php echo($options); ?>});
</script> 

<?php
endif;
?>
<h2>
<?php __('Extract minutes');?></h2>
<p class="notes"><?php __('This will extract the decisions from previous minutes')?></p>
<div>
    <h4><?php __('Legend:'); ?></h4>
    <ul>
    <li> <?php __('### :- Every decision is separated by 3 hashes'); ?> </li>
    <li> <?php __('[[ project/item ]] :- The short name or name of the project or item the decision is related to'); ?> </li>
    <li> <?php __('{{ user }} :- The user or users(separated by comma) which have to take action on the decision'); ?></li>
    <li> <?php __('{{ g: groupname }} :- The group or groups(separated by comma) which have to take action on the decision'); ?></li>
    <li> <?php __(' (( dateline )) :- The dateline for the decision'); ?></li>
</ul>
</div>

<fieldset>
    <div class="fieldset-inside">
    <?php 
    echo $form->create('Decision',array('url'=>array('committee'=>$dcommittee['Committee']['short_name'],'action'=>'verifyminutes','meetingid'=>$meeting['Meeting']['id'])));
    echo $form->textarea('data',array('cols'=>70,'rows'=>30,'value'=>$meeting['Meeting']['minutes_raw']));
    echo $form->hidden('meeting_id',array('value'=>$meeting['Meeting']['id'])); 
    ?>
    </div>
</fieldset>

<p>&nbsp;</p>
<?php echo $form->button(__('Save', true),array('type'=>'submit'));?>&nbsp;
<?php echo $form->button(__('Cancel', true), array('type'=>'button', 'onclick'=>'history.go(-1)'));?>
<?php echo $form->end();?>

</div>

